package io.github.talelin.latticy.dto.omsware;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @authoer:wulongbo
 * @createDate:2022/6/28
 * @description:
 */

@Data
public class OmsCheckDTO {

    @NotNull(message = "{user.not-blank}")
    private Integer userId;

    @Pattern(regexp = "^[0-9a-zA-Z_]{1,}$", message = "{warehouse.code.pattern}")
    @Length(min = 3, max = 8, message = "{warehouse.code.length}")
    private String code;
}
